package com.yswy.common.enums;

public enum QyPlatformEnums {
    FL(1, "福禄"),
    HFT(2, "华付通"),
    LC(3, "乐充"),
    JZY(4, "佳之易"),
    YLY(5, "羊了羊");

    QyPlatformEnums(int code, String name) {
        this.code = code;
        this.name = name;
    }

    private final Integer code;

    private final String name;

    public Integer getCode() {
        return this.code;
    }

    public String getName() {
        return this.name;
    }

    public static QyPlatformEnums getInstance(Object code){
        for (QyPlatformEnums enums : QyPlatformEnums.values()) {
            if (enums.code.equals(code)){
                return enums;
            }
        }
        return null;
    }
}
